package com.pet.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;
@Data
@Accessors(chain = true)
@TableName("item_cat")
public class ItemCat extends BasePojo{
    @TableId(type = IdType.AUTO)
    private Integer id;//编号
    private Integer parentId;//父级编号
    private String name;//名称
    private Integer status;//状态 0停用 1正常
    private Integer level;//分类等级 1 2
    @TableField(exist = false)
    private List<ItemCat> children;//存放子分类的对象
}
